package com.situ.day22.annotation;

import java.util.List;

public class AnnotationDemo {

    @Override
    public String toString() {
        return super.toString();
    }

    // 抑制编译器警告 List不加泛型会出警告
    @SuppressWarnings({"unused","unchecked"})
    private void save() {
        List list = null;

    }

    // 标记方法以及过时
    @Deprecated
    public void save1() {

    }

    public void test1() {
        save1();
        save();
    }
}
